package com.gagakuai.base.vo;

import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;

/*
 * 分页结果
 * @author flipped
 * @date 2022-02-10
 * @version 1.0.0
 */
public class PageResult<T> implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据")
    private T items;

    @ApiModelProperty(value = "总数量")
    private Long totalCount;

    public T getItems() {
        return items;
    }

    public void setItems(T items) {
        this.items = items;
    }

    public Long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(Long totalCount) {
        this.totalCount = totalCount;
    }

    @Override
    public String toString() {
        return "PageResult{" +
                "items=" + items +
                ", totalCount=" + totalCount +
                '}';
    }
}
